Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable typing in a few more files #14937

Merged
merged 4 commits into from
Mar 10, 2023
Merged

Conversation

dduugg
Copy link
Member

@dduugg dduugg commented Mar 9, 2023

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same change?
  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your changes? Here's an example.
  • Have you successfully run brew style with your changes locally?
  • Have you successfully run brew typecheck with your changes locally?
  • Have you successfully run brew tests with your changes locally?

This is a mix of files with typing enabled (we're down to <100 files outside of the sorbet/test/vendor dirs that are typed: false, so i'm chipping away at these when i have a few cycles to spare)

@BrewTestBot
Copy link
Member

Review period will end on 2023-03-10 at 17:31:46 UTC.

@BrewTestBot BrewTestBot added the waiting for feedback Merging is blocked until sufficient time has passed for review label Mar 9, 2023
run_test = proc do
raise "test returned false" if formula.run_test(keep_tmp: args.keep_tmp?) == false
end
# TODO: the current version of sorbet does not support `proc` here
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the error here? Is there an issue we can link to here?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, so it's because the proc doesn't have an argument?

@dduugg dduugg force-pushed the enable-typing branch 2 times, most recently from 2304b92 to 5a352a6 Compare March 9, 2023 19:58
Copy link
Member

@reitermarkus reitermarkus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's maybe squash the last few commits.


# tests can also return false to indicate failure
run_test = proc do
run_test = proc do |_ = nil|
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh, very nice @reitermarkus

@MikeMcQuaid MikeMcQuaid added the critical Critical change which should be shipped as soon as possible. label Mar 10, 2023
@MikeMcQuaid MikeMcQuaid enabled auto-merge March 10, 2023 09:01
@MikeMcQuaid
Copy link
Member

Thanks again @dduugg (and @reitermarkus!).

@BrewTestBot BrewTestBot removed the waiting for feedback Merging is blocked until sufficient time has passed for review label Mar 10, 2023
@BrewTestBot
Copy link
Member

Review period skipped due to critical label.

@MikeMcQuaid MikeMcQuaid merged commit 0c1031f into Homebrew:master Mar 10, 2023
@dduugg dduugg deleted the enable-typing branch March 11, 2023 19:52
@github-actions github-actions bot added the outdated PR was locked due to age label Apr 11, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
critical Critical change which should be shipped as soon as possible. outdated PR was locked due to age
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants